// ///////////////////////////// MIT License //////////////////////////////////// //
//                                                                                //
// Copyright (c) 2010 David Zsolt Manrique                                        //
//                    david.zsolt.manrique@gmail.com                              //
//                                                                                //
// Permission is hereby granted, free of charge, to any person obtaining a copy   //
// of this software and associated documentation files (the "Software"), to deal  //
// in the Software without restriction, including without limitation the rights   //
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell      //
// copies of the Software, and to permit persons to whom the Software is          //
// furnished to do so, subject to the following conditions:                       //
//                                                                                //
// The above copyright notice and this permission notice shall be included in     //
// all copies or substantial portions of the Software.                            //
//                                                                                //
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR     //
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,       //
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE    //
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER         //
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,  //
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN      //
// THE SOFTWARE.                                                                  //
//                                                                                //
// ////////////////////////////////////////////////////////////////////////////// //

#ifndef STRUCTURE_IO_H
#define STRUCTURE_IO_H

#include "structure.h"
#include "inout.h"




std::ostream & operator << (std::ostream & os,const potential_base & p);
std::ostream & operator << (std::ostream & os,const potential_list_t & pl);
std::ostream & operator << (std::ostream & os,const group_t & g);
std::ostream & operator << (std::ostream & os,const topology_t & top);
std::ostream & operator << (std::ostream & os,const position_t & get);
std::ostream & operator << (std::ostream & os,const velocity_t & get);
std::ostream & operator << (std::ostream & os,const mass_t & get);
std::ostream & operator << (std::ostream & os,const constrain_t & get);
std::ostream & operator << (std::ostream & os,const charge_t & get);
std::ostream & operator << (std::ostream & os,const label_t & get);
std::ostream & operator << (std::ostream & os,const atom_list_t & get);
const std::vector<std::string> & operator >> (const std::vector<std::string> & input_lines, atom_list_t & get);
const std::vector<std::string> & operator >> (const std::vector<std::string> & input_lines, structure_t & get);
std::ostream & operator << (std::ostream & os,const unitcell_t & get);
std::ostream & operator << (std::ostream & os,const structure_t & get);
const std::vector<std::string> & operator >> (const std::vector<std::string> & input_lines,topology_t & get);
const std::vector<std::string> & operator >> (const std::vector<std::string> & input_lines,group_t & get);
const std::vector<std::string> & operator >> (const std::vector<std::string> & input_lines,position_t & get);
const std::vector<std::string> & operator >> (const std::vector<std::string> & input_lines,velocity_t & get);
const std::vector<std::string> & operator >> (const std::vector<std::string> & input_lines,unitcell_t & get);
const std::vector<std::string> & operator >> (const std::vector<std::string> & input_lines,mass_t & get);
const std::vector<std::string> & operator >> (const std::vector<std::string> & input_lines,charge_t & get);
const std::vector<std::string> & operator >> (const std::vector<std::string> & input_lines,label_t & get);
const std::vector<std::string> & operator >> (const std::vector<std::string> & input_lines,potential_list_t & get);
const std::vector<std::string> & operator >> (const std::vector<std::string> & input_lines,potential_fit_list_t & get);
const std::vector<std::string> & operator >> (const std::vector<std::string> & input_lines,constrain_t & get);

 


/***************************************/




/*
std::ostream & operator << (std::ostream & os,const out<potential_base> & p);
std::ostream & operator << (std::ostream & os,const out<potential_list_t> & pl);
std::ostream & operator << (std::ostream & os,const out<group_t> & g);
std::ostream & operator << (std::ostream & os,const out<topology_t> & top);
std::ostream & operator << (std::ostream & os,const out<vector_array_type,position> & get);
std::ostream & operator << (std::ostream & os,const out<vector_array_type,velocity> & get);
std::ostream & operator << (std::ostream & os,const out<real_array_type,mass> & get);
std::ostream & operator << (std::ostream & os,const out<real_array_type,charge> & get);
std::ostream & operator << (std::ostream & os,const out<std::vector<std::string> > & get);
std::ostream & operator << (std::ostream & os,const out<atom_list_t,def,normal> & get);
std::ostream & operator << (std::ostream & os,const out<atom_list_t,def,debug> & get);
std::istream & operator >> (std::istream & is,in<atom_list_t,def,debug> & get) ;
const std::vector<std::string> & operator >> (const std::vector<std::string> & input_lines,in<atom_list_t> & get);
const std::vector<std::string> & operator >> (const std::vector<std::string> & input_lines,in<structure_t> & get);
std::ostream & operator << (std::ostream & os,const out<atom_list_t,def,xyz> & get);
std::ostream & operator << (std::ostream & os,const out<matrix_type> & uc);
std::ostream & operator << (std::ostream & os,const out<structure_t> & st);

*/
#endif // STRUCTURE_IO_H

